package com.zhiche.lisa.bms.dao.model.interfacelog;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 统一接口日志表
 * </p>
 *
 * @author linbao
 * @since 2018-11-07
 */
@TableName("lisa_interface_log")
public class InterfaceLog extends Model<InterfaceLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 类型; 0-被调用方, 1-调用方
     */
	private Integer type;
    /**
     * 调用地址
     */
	private String url;
    /**
     * 请求参数
     */
	private String param;
    /**
     * 成功或失败, 0-失败, 1-成功
     */
	@TableField("result_success")
	private Integer resultSuccess;
    /**
     * 返回状态编码
     */
	@TableField("result_code")
	private String resultCode;
    /**
     * 返回信息
     */
	@TableField("result_message")
	private String resultMessage;
    /**
     * 返回数据
     */
	@TableField("result_data")
	private String resultData;
    /**
     * 创建时间-调用时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public Integer getResultSuccess() {
		return resultSuccess;
	}

	public void setResultSuccess(Integer resultSuccess) {
		this.resultSuccess = resultSuccess;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMessage() {
		return resultMessage;
	}

	public void setResultMessage(String resultMessage) {
		this.resultMessage = resultMessage;
	}

	public String getResultData() {
		return resultData;
	}

	public void setResultData(String resultData) {
		this.resultData = resultData;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "InterfaceLog{" +
			", id=" + id +
			", type=" + type +
			", url=" + url +
			", param=" + param +
			", resultSuccess=" + resultSuccess +
			", resultCode=" + resultCode +
			", resultMessage=" + resultMessage +
			", resultData=" + resultData +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
